package pattern7;


/**
 * p90
 * 模板方法模式
 * @author wdl
 */
public class TemplateMethodPattern {
    public static void main(String[] args) {
        AbstractClass c;
        System.out.println("具体实现类A:");
        c=new ConcreteClassA();
        c.templateMethod();

        System.out.println("\n具体实现类B:");
        c=new ConcreteClassB();
        c.templateMethod();
    }
}
